<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <title>发布留言</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor('MyTextarea') ;
oFCKeditor.BasePath = "/Board/fckeditor/" ;
oFCKeditor.Width="100%";
oFCKeditor.Height="250";
oFCKeditor.ToolbarSet="board";
oFCKeditor.Config["CustomConfigurationsPath"] = "/Board/myconfig.js"  ;
oFCKeditor.ReplaceTextarea() ;
}
</script>

  </head>
  
  <body>
  
   		<s:form action="SaveMessage" theme="simple">
      <s:hidden name="message.accountName"  value="%{#session.user.accountName} "></s:hidden>
       
			<table >
		
				<tr>
				
					<td>
						标题：
					</td>
					<td >
						 <s:textfield name="message.title"  size="60" ></s:textfield>
					</td>

					
				</tr>
				<tr ><td colspan="2" align="left">
						<s:fielderror cssStyle="color:red">
							<s:param>message.title</s:param>
						</s:fielderror>
					</td></tr>
				
				<tr>
					<td >
						内容：
					</td>
					<td width="500px" >
<s:textarea  name="message.content" id="MyTextarea"></s:textarea>
					
					</td>

					
				</tr>
				<tr ><td colspan="2" align="left"> 
						<s:fielderror cssStyle="color:red">
							<s:param>message.content</s:param>
						</s:fielderror>
					</td></tr>
			
				<tr>
					<td colspan="2" align="center">
							<s:submit label="submit" value="确定留言"></s:submit>
							 <s:reset value="重新留言"></s:reset>
					</td>
				</tr>

			</table>

		</s:form>
  </body>
</html>
